package com.example.demo2.d4;

/**
 * @author renyitong
 * @version 1.0.0
 * @createTime 2025年11月19日
 * @Description
 */
public class Client {

    private ServiceA serviceA;

    private ServiceB serviceB;

    public Client(ServiceA serviceA, ServiceB serviceB) {
        this.serviceA = serviceA;
        this.serviceB = serviceB;
    }

    public void doSomething() {
        serviceA.a();
        serviceB.b();
    }

}
